package zxs.sino.elite.hub.service.app.impl;

import com.github.yulichang.base.MPJBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import zxs.sino.elite.hub.mapper.app.ArticleLikesMapper;
import zxs.sino.elite.hub.model.app.ArticleLikesEntity;
import zxs.sino.elite.hub.service.app.ArticleLikesService;
import zxs.sino.elite.hub.utils.PageUtil;
import zxs.sino.elite.hub.utils.Query;


@Service("articleLikesService")
public class ArticleLikesServiceImpl extends MPJBaseServiceImpl<ArticleLikesMapper, ArticleLikesEntity> implements ArticleLikesService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<ArticleLikesEntity> page = this.page(
                new Query<ArticleLikesEntity>().getPage(params),
                new QueryWrapper<ArticleLikesEntity>()
        );

        return new PageUtil(page);
    }

}